/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.orderdetail;

import com.xingkeduo.dto.HairstyleResponseDTO;
import lombok.Data;

@Data
public class Selected_hair {
    private String hair_id;
    private String img_folder;
    private String name;
    private String hairstyle_label;
    private String english_sign;
    private String hairstyle_introduction;

    public void covert(HairstyleResponseDTO data) {
        if(data!=null) {
            this.hair_id = String.valueOf(data.getId());
            this.img_folder = data.getCover();
            this.name = data.getName();
            this.hairstyle_label = data.getTitle();
            this.english_sign = data.getEnmark();
            this.hairstyle_introduction = data.getIntro();
        }
    }
}